/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.base.entity.reader;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 基础管理_读者信息生成Entity
 * @author 呆子
 * @version 2020-02-21
 */
public class BaseReader extends DataEntity<BaseReader> {
	
	private static final long serialVersionUID = 1L;
	private String readerId;		// 学号
	private String readerName;		// 姓名
	private String readerSex;		// 性别
	private String readerAge;		// 年龄
	private String readerIdcardId;		// 身份证
	private String readerCollege;		// 学院
	private String readerMajor;		// 专业
	private String readerPhone;		// 电话
	private String readerMail;		// 邮箱
	
	public BaseReader() {
		super();
	}

	public BaseReader(String id){
		super(id);
	}

	@Length(min=1, max=20, message="学号长度必须介于 1 和 20 之间")
	public String getReaderId() {
		return readerId;
	}

	public void setReaderId(String readerId) {
		this.readerId = readerId;
	}
	
	@Length(min=1, max=20, message="姓名长度必须介于 1 和 20 之间")
	public String getReaderName() {
		return readerName;
	}

	public void setReaderName(String readerName) {
		this.readerName = readerName;
	}
	
	@Length(min=1, max=20, message="性别长度必须介于 1 和 20 之间")
	public String getReaderSex() {
		return readerSex;
	}

	public void setReaderSex(String readerSex) {
		this.readerSex = readerSex;
	}
	
	@Length(min=1, max=20, message="年龄长度必须介于 1 和 20 之间")
	public String getReaderAge() {
		return readerAge;
	}

	public void setReaderAge(String readerAge) {
		this.readerAge = readerAge;
	}
	
	@Length(min=1, max=20, message="身份证长度必须介于 1 和 20 之间")
	public String getReaderIdcardId() {
		return readerIdcardId;
	}

	public void setReaderIdcardId(String readerIdcardId) {
		this.readerIdcardId = readerIdcardId;
	}
	
	@Length(min=1, max=20, message="学院长度必须介于 1 和 20 之间")
	public String getReaderCollege() {
		return readerCollege;
	}

	public void setReaderCollege(String readerCollege) {
		this.readerCollege = readerCollege;
	}
	
	@Length(min=1, max=20, message="专业长度必须介于 1 和 20 之间")
	public String getReaderMajor() {
		return readerMajor;
	}

	public void setReaderMajor(String readerMajor) {
		this.readerMajor = readerMajor;
	}
	
	@Length(min=1, max=20, message="电话长度必须介于 1 和 20 之间")
	public String getReaderPhone() {
		return readerPhone;
	}

	public void setReaderPhone(String readerPhone) {
		this.readerPhone = readerPhone;
	}
	
	@Length(min=1, max=20, message="邮箱长度必须介于 1 和 20 之间")
	public String getReaderMail() {
		return readerMail;
	}

	public void setReaderMail(String readerMail) {
		this.readerMail = readerMail;
	}
	
}